<template>
	<view>
		<!-- 投标管理 -->
		<view class="bg-white p-4">
			<view class="flex" style="border-bottom: 4rpx solid #eee;width: 2000rpx;">
				<view @click="selectActive(index)" class="px-5 py-2 font-md border" :class="active==index?'active':''" v-for="(item,index) in NavData" :key="index">
					<text>{{item.name}}</text>
				</view>
			</view>
			<view class="p-2 flex flex-column" style="background-color: rgb(249,249,249);flex-wrap: wrap;">
				<view class="flex justify-between mb-3">
					<view class="flex align-center mr-4">
						<text>标的号:</text>
						<view class="ml-2 flex align-center px-2" style="border: 6rpx solid #eee;height: 60rpx;border-radius: 10rpx;">
							<input type="text">
						</view>
					</view>
					<view class="flex align-center mr-4">
						<text>状态:</text>
						<view class="ml-2">
							<uni-data-select empty-text="暂无" placeholder="请选择状态" v-model="Selectvalue"
								:localdata="range" @change="change"></uni-data-select>
						</view>
					</view>
					<view class="flex align-center mr-4">
						<text>招标会:</text>
						<view class="ml-2">
							<uni-data-select empty-text="暂无" placeholder="请选择招标会" v-model="Selectvalue"
								:localdata="range1" @change="change"></uni-data-select>
						</view>
					</view>
					<view class="flex">
						<view class="text-orange bg-white px-4 py-2 text-center mr-2" style="border-radius: 10rpx;border: 4rpx solid #fc7c08;">
							<text>重置</text>
						</view>
						<view class="text-white bg-orange px-4 py-2 text-center" style="border-radius: 10rpx;">
							<text>查询</text>
						</view>
					</view>
				</view>
				<view class="flex">
					<view class="flex align-center mr-4">
						<text style="white-space: nowrap;">投标时间：</text>
						<view style="width: 500rpx;">
							<uni-datetime-picker v-model="datetimerange" type="datetimerange" rangeSeparator="至" />
						</view>
					</view>
				</view>
			</view>
		    <!-- 表格 -->
		    <view class="mt-2 flex flex-column">
		    	<view class="w-100 flex font-md font-weight-bold"
		    		style="background-color: rgb(245,245,245);height: 80rpx;">
		    		<view class="text-center" style="width: 20%;line-height: 80rpx;">
		    			<text>标的信息</text>
		    		</view>
		    		<view class="text-center" style="width: 20%;line-height: 80rpx;">
		    			<text>招标会信息</text>
		    		</view>
		    		<view class=" text-center" style="width: 20%;line-height: 80rpx;">
		    			<text>投标信息</text>
		    		</view>
		    		<view class=" text-center" style="width: 20%;line-height: 80rpx;">
		    			<text>中标信息</text>
		    		</view>
		    		<view class=" text-center" style="width: 20%;line-height: 80rpx;">
		    			<text>状态</text>
		    		</view>
		    	</view>
		    	<view v-if="false" style="height: 200rpx;" class="w-100 flex justify-center align-center">
		    		暂无数据
		    	</view>
		    	<view v-else class="flex font-sm" style="height: 150rpx;border-bottom:2rpx solid rgb(221,221,211);"
		    		v-for="(item,index) in 4" :key="index">
		    		<view class="flex align-center justify-center " style="width: 20%;line-height: 70rpx;">
		    			<view class="flex justify-center w-100">
		    				<text class="text-ellipsis">这是一条标的信息</text>
		    			</view>
		    		</view>
		    		<view class="flex align-center justify-center" style="width: 20%;line-height: 70rpx;">
		    			<view class="flex justify-center">
		    				<text>这是一条招标会信息</text>
		    			</view>
		    		</view>
					<view class="flex align-center justify-center" style="width:20%;line-height: 70rpx;">
						<view class="flex justify-center">
							<text>这是一条投标消息</text>
						</view>
					</view>
					<view class="flex align-center justify-center" style="width: 20%;line-height: 70rpx;">
						<text>中标</text>
					</view>
		    		<view class="flex align-center justify-center" style="width: 20%;line-height: 70rpx;">
		    			<text>已结束</text>
		    		</view>
		    	</view>
		    </view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"BidManagement",
		data() {
			return {
				datetimerange: [],
				active:0,
				Selectvalue: '',
				range: [{
						value: 0,
						text: "全部"
					},
					{
						value: 1,
						text: "中标"
					},
					{
						value: 2,
						text: "流标"
					},
					{
						value: 3,
						text: "投标成功"
					},
					{
						value: 4,
						text: "待开标"
					},
					{
						value: 5,
						text: "评标中"
					},
				],
				range1: [{
						value: 0,
						text: "全部"
					},
					{
						value: 1,
						text: "待验收"
					},
					{
						value: 2,
						text: "已验收"
					},
				],
				NavData:[
					{
						name:'稻谷副产品',
					},
					{
						name:'物流运力',
					},
					{
						name:'编织袋',
					},
				]
			};
		},
		methods:{
			selectActive(index){
				this.active = index
			},
			change(e) {
				console.log(e)
			},
		}
	}
</script>

<style lang="scss">
	.border{
		border: 4rpx solid transparent;
		cursor: pointer;
		transition: all 0.5s;
	}
.active{
	color: #fc7c08;
	border: 4rpx solid #eee;
}
</style>